Microprocessor-controlled knee joints